package com.smarthospital;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan(basePackages = {"com.smarthospital.dao.mapper"})
@EnableMethodCache(basePackages = {"com.smarthospital"})
@EnableCreateCacheAnnotation
@EnableSwagger2
@Slf4j
@EnableElasticsearchRepositories(basePackages = "com.smarthospital.dao.im")
public class SHApp {

    public static void main(String[] args) {
        SpringApplication.run(SHApp.class, args);
        log.error("智慧医院app启动成功!");
    }

}
